// 定义颜色
export const orderColors = new Map([
  ["withhold", "#FF2A2A"],
  ["in_review", "#FF8838"],
  ["returned", "#00BD78"],
]);
// 通道颜色color
export const thoroughfare = new Map([
  ["normal", { color: "#00BD78", img: "/static/order/Normal-order.png" }],
  [
    "not_active",
    { color: "#FF8838", img: "/static/order/Notactive-order.png" },
  ],
  ["close", { color: "#FF2A2A", img: "/static/order/Close-order.png" }],
  ["deactivate", { color: "#FF2A2A", img: "/static/order/Close-order.png" }],
]);
// 支付方式 // 注：key：支付方式 在怎么状态下显示
export const priceWay: Array<PriWayItem> = [
  {
    name: "微信支付",
    icon: "weixinzhifu",
    key: ["0", "2"],
    iconColor: "#00C250",
    payType: "weixin",
  },
  {
    name: "余额支付",
    icon: "yuezhifu",
    key: ["1", "2"],
    iconColor: "#FFC338",
    payType: "balance",
  },
];
// 定义订单状态
export const orderTypeList: Array<{
  name: string;
  key: OrderType;
  color?: string;
}> = [
    {
      name: "全部",
      key: "all",
    },
    {
      name: "待发货",
      key: "pendingShipment",
      color: "#FF8838",
    },
    {
      name: "待收货",
      key: "dueIn",
      color: "#5338FF",
    },
    {
      name: "激活中",
      key: "activation",
      color: "#3881FF",
    },
    {
      name: "已停用",
      key: "complete",
      color: "#FF2A2A",
    },
    {
      name: "使用中",
      key: "use",
      color: "#00BD78",
    },
    {
      name: "已完成",
      key: "deactivate",
      color: "#777777",
    },
  ];
// 设备状态
export const equipmentStatus = new Map([
  ["0", { url: "/subPackages/orderPage/deliveryProgress?id=", name: "待发货", butName: '查看进度' }],
  ["1", { url: "pop", name: "设备已发货", butName: '确认收货' }],
  ["2", { url: "/subPackages/package/list", name: "设备已收到", butName: '购买套餐' }],
  ["3", { url: "/subPackages/orderPage/activation", name: "待实名", butName: '去实名' }],
  ["4", { url: "", name: "激活中", butName: '联系客服' }],
  ["5", { url: "", name: "套餐名称", butName: '查看详情' }],
  ["6", { url: "", name: "临期", butName: '续租' }],
  ["7", { url: "", name: "到期", butName: '续租' }],
  ["8", { url: "", name: "过期", butName: '' }],
  ["9", { url: "", name: "已停用", butName: '', subTitle: '当前套餐已停用，请联系客服处理' }],

]);
